package com.woniu.smart.service.impl;

import com.woniu.smart.entity.Fault;
import com.woniu.smart.mapper.FaultMapper;
import com.woniu.smart.service.FaultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: smart
 * @description:
 * @author: qqq
 * @create: 2022-10-29 19:55
 **/
@Service
public class FaultServiceImpl implements FaultService {
    @Autowired
    private FaultMapper faultMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        return faultMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Fault record) {
        return faultMapper.insert(record);
    }

    @Override
    public int insertSelective(Fault record) {
        return faultMapper.insertSelective(record);
    }

    @Override
    public List<Fault> selectAll() {
        return faultMapper.selectAll();
    }

    @Override
    public Fault selectByPrimaryKey(Long id) {
        return faultMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Fault record) {
        return faultMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Fault record) {
        return faultMapper.updateByPrimaryKey(record);
    }
}
